﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginForm.ascx.cs" Inherits="TGVR.Manager.UserControls.Template.SystemUser.LoginForm" %>
<header>
    Đăng nhập hệ thống
</header>
<fieldset>
    <section>
        <label class="label">Mã nhân viên</label>
        <label class="input">
            <i class="icon-append fa fa-user"></i>
            <asp:TextBox runat="server" ID="txtUserName"></asp:TextBox>
            <b class="tooltip tooltip-top-right"><i class="fa fa-user txt-color-teal"></i>Vui lòng nhập mã nhân viên</b></label>
    </section>
    <section>
        <label class="label">Mật khẩu</label>
        <label class="input">
            <i class="icon-append fa fa-lock"></i>
            <asp:TextBox runat="server" ID="txtPassword" TextMode="Password"></asp:TextBox>
            <b class="tooltip tooltip-top-right"><i class="fa fa-lock txt-color-teal"></i>Vui lòng nhập mật khẩu</b>
        </label>
        <div class="note">
            <asp:Literal runat="server" ID="ltrLoginMessage" Text=""></asp:Literal>
        </div>
    </section>
    <asp:Panel runat="server" ID="pnlCaptchaContainer" Visible="false">
        <section>
            <p class="txt-color-red">
                <%= LoginRequired %>
            </p>
            <div style="float:left;">
                <img id="imgVerifyImage" src="<%=WebLibs.Globals.ApplicationVRoot() + "/" + VerifyImagePath %>"
                    alt="Mã xác nhận" style="cursor: pointer;" onclick="RefreshCode(this)" height="35"
                    width="135" />
            </div>
            <div style="float:left; margin-left:10px; padding-top:5px;">
                <label class="input">
                    <asp:TextBox runat="server" ID="txtConfirmCaptcha" Text="" CssClass="input-sm"></asp:TextBox>
                </label>
            </div>
        </section>
    </asp:Panel>
</fieldset>
<footer>
    <asp:Button runat="server" ID="btnLogin" Text="Đăng nhập" CssClass="btn btn-primary"
        OnClick="btnLogin_Click" />
</footer>
<script type="text/javascript">
    function RefreshCode(img) {
        img.src = '<%=WebLibs.Globals.ApplicationVRoot() %>/App_Themes/SmartAdmin/img/ajax-loader.gif';
        img.src = '<%=WebLibs.Globals.ApplicationVRoot() + "/" + VerifyImagePath %>?' + Math.random();
    }
</script>
